package com.young.design.pattern.adapter;

/**
 * @ClassName : AdapterTest
 * @Author : hyy
 * @Date: 2020-03-16
 */
public class AdapterTest {
    public static void main(String[] args) {
        ChinaPowerAdapter chinaPowerAdapter = new ChinaPowerAdapter();
        JapanPowerAdapter japanPowerAdapter = new JapanPowerAdapter();
        AC220 ac220 = new AC220();
        AC110 ac110 = new AC110();
        chinaPowerAdapter.outputDC5V(ac220);
        japanPowerAdapter.outputDC5V(ac110);
    }
}
